from rest_framework import serializers

from forleave.models import StudentGroup, StudentInfo, ForLeaveRecord


class StudentInfoSerializer(serializers.ModelSerializer):
    class Meta:
        model = StudentInfo
        fields = '__all__'


class StudentGroupSerializer(serializers.ModelSerializer):
    class Meta:
        model = StudentGroup
        fields = '__all__'


class ForLeaveRecordSerializer(serializers.ModelSerializer):
    class Meta:
        model = ForLeaveRecord
        fields = '__all__'
